<template>
  <div style="display: flex;height: 100%;">
    <sideBar :groupSettings="groupSettings" class="fl"></sideBar>
    <div class="km-wapper fr">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
  </div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import sideBar from '@/common/views/sideBar/index.vue'
@Component({
  name: 'kmIndex',
  components: { sideBar }
})
export default class KmIndex extends Vue {
  private $router: any
  private groupSettings = {
    kmChannel: {
      title: '知识库渠道'
    },
    phrase: {
      title: '常用语'
    }
  }

  private beforeMount () {
    // this.$router.push('/knowledge_mgt/index/knowledge_mgt_channel/')
  }
}
</script>
<style lang="stylus" scoped>
  .km-wapper
    width calc(100vw - 254px)
    height 100%
    margin-left 20px
    overflow-x auto
    overflow-y hidden
    box-sizing border-box
</style>
